package compendiumAid.domain
{
	import mx.managers.CursorManager;
	
	public class ApplicationCursorManager
	{
		private static var _hideBusyCursor:Boolean = false;
		
		private static var showBusyCursor:Boolean = false;;
		
		public static function setBusyCursor():void
		{
			if (_hideBusyCursor == false)
			{
				CursorManager.setBusyCursor();
			}
			else
			{
				removeBusyCursor();
			}
		
			showBusyCursor = true;
		}
		
		public static function removeBusyCursor():void
		{
			CursorManager.removeAllCursors();
			
			showBusyCursor = false;
		}
		
		public static function set hideBusyCursor(value:Boolean):void
		{
			_hideBusyCursor = value;
			
			if (showBusyCursor == true)
			{
				setBusyCursor();
			}
		}
	}
}